
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include( 'shared.lua' )


// Serverside only stuff goes here

/*---------------------------------------------------------
   Name: gamemode:PlayerLoadout( )
   Desc: Give the player the default spawning weapons/ammo
---------------------------------------------------------*/
function GM:PlayerLoadout( pl )
    if ply:Team() == 1 then
	pl:Give( "weapon_vpf_rifle" )
	pl:GiveAmmo( 255,	"Pistol", 		true )
	
	pl:Give( "empty_weapon" )
	elseif ply:Team() == 2 then
	ply:Give( "empty_weapon" )
	ply:Give( "weapon_vip_primary" )
	elseif ply:Team() == 3 then
	ply:Give( "weapon_terr_ak" )
	ply:GiveAmmo(255, "Smg1",			true)
	elseif ply:Team() == 4 then
	
	end
end

function GM:OnNPCKilled( victim, killer, weapon )
	if .. killer:Team() == team_1 then
		ply:Kick
	end
	if ply:Team() == team_1 then
		ply:Kill
	end
   Msg( victim:GetClass()  .. " was killed by " .. killer:GetName().. " with a " .. weapon:GetClass() .. ".\n" )
end

function GM:PlayerInitialSpawn( ply )
 
    ply:SetTeam( 4 )
	printMessage( 'You are a spectator' )
 
end 
